<html xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets">

<f:view contentType="text/html" locale="#currentLocale" />

<h:head>
	<title>Help Desk</title>
	<link type="text/css" rel="stylesheet" href="css/styles.css" />
</h:head>

<h:body style="background-color:#f1f1f1">
	<table style="width: 100%">
		<h:form>
			<tr>
				<td height="70" align="right">
					<h:outputText value="Usuário logado: #{sessaoUsuario.usuarioAtual.nome}" rendered="#{sessaoUsuario.usuarioLogado}"/>
					<p:commandLink value="Login" action="#{usuarioMB.preLogin()}" ajax="false" rendered="#{!sessaoUsuario.usuarioLogado}"/>
					<br/>
					<p:commandLink value="Logout" action="#{usuarioMB.logout()}" ajax="false" rendered="#{sessaoUsuario.usuarioLogado}"/> 
				</td>
			</tr>			
		</h:form>
		<tr>
			<td height="20" colspan="2"><ui:include src="/menu.xhtml" /></td>
		</tr>
		<tr valign="top">
			<td height="400" colspan="2"><ui:insert name="body" /></td>
		</tr>
	</table>
	<p:ajaxStatus style="width:16px;height:16px;">
		<f:facet name="start">
		</f:facet>

		<f:facet name="complete">
			<h:outputText value="" />
		</f:facet>
	</p:ajaxStatus>
</h:body>
</html>